package com.nangle.managehost.data;

import com.chingteach.chartlibrary.model.PointValue;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ldd on 2016/11/2 0002.
 */
public class LineChartDummyData {
    public static List<PointValue> getFirstChart(){
        List<PointValue> points;
        points = new ArrayList<>();
        PointValue value1 = new PointValue(0,36.9f,ChartPointColorUtils.BLUE);

        points.add(value1);
        PointValue value2 = new PointValue(2,36.9f,ChartPointColorUtils.BLUE);
        points.add(value2);
        PointValue value3 = new PointValue(4,36.9f,ChartPointColorUtils.BLUE);
        points.add(value3);
        PointValue value4 = new PointValue(6,36.7f,ChartPointColorUtils.BLUE);
        points.add(value4);
        PointValue value5 = new PointValue(8,40,ChartPointColorUtils.RED);
        points.add(value5);
        PointValue value6 = new PointValue(10,36.8f,ChartPointColorUtils.BLUE);
        points.add(value6);
        PointValue value7 = new PointValue(12,36.7f,ChartPointColorUtils.BLUE);
        points.add(value7);
        PointValue value8 = new PointValue(14,36.7f,ChartPointColorUtils.BLUE);
        points.add(value8);
        PointValue value9 = new PointValue(16,36.5f,ChartPointColorUtils.BLUE);
        points.add(value9);
        PointValue value10 = new PointValue(18,37,ChartPointColorUtils.BLUE);
        points.add(value10);

        return points;
    }
    //不设置每个点的颜色也可以，要是点全部都是一个颜色的话，只需要在代码中调用：line.setPointColor(int color);【hellocharts中原有的方法】即可
//    public static List<PointValue> getFirstChart(){
//        List<PointValue> points;
//        points = new ArrayList<>();
//        PointValue value1 = new PointValue(0,40);
//        value1.setLabel("00:00");
//        points.add(value1);
//        PointValue value2 = new PointValue(10,62);
//        value2.setLabel("06:00");
//        points.add(value2);
//        PointValue value3 = new PointValue(20,60);
//        value3.setLabel("09:40");
//        points.add(value3);
//        PointValue value4 = new PointValue(30,69);
//        value4.setLabel("20:00");
//        points.add(value4);
//        PointValue value5 = new PointValue(40,64);
//        value5.setLabel("05:30");
//        points.add(value5);
//        PointValue value6 = new PointValue(50,71);
//        value6.setLabel("09:00");
//        points.add(value6);
//        PointValue value7 = new PointValue(60,82);
//        value7.setLabel("15:40");
//        points.add(value7);
//        PointValue value8 = new PointValue(70,60);
//        value8.setLabel("22:00");
//        points.add(value8);
//        PointValue value9 = new PointValue(80,50);
//        value9.setLabel("06:00");
//        points.add(value9);
//        PointValue value10 = new PointValue(90,80);
//        value10.setLabel("08:50");
//        points.add(value10);
//        PointValue value11 = new PointValue(100,85);
//        value11.setLabel("14:50");
//        points.add(value11);
//        PointValue value12 = new PointValue(110,63);
//        value12.setLabel("23:30");
//        points.add(value12);
//        return points;
//    }
}
